import {createApp} from 'vue'

import router from '@/router'
import '@/router/permission'

import Pinia from '@/store'

import App from './App.vue'

import ElementPlus from 'element-plus'

import Fonts from '@/assets/fonts'

import GlobalComponents from '@/components'
import Mixin from './mixins'
import Widgets from './widgets'
import {initDom} from './utils/positionToCode.js'
// import vue3PhotoPreview from 'vue3-photo-preview';
// import 'vue3-photo-preview/dist/index.css';

initDom()
const app = createApp(App)

// app.use(vue3PhotoPreview)

app
    .use(router)
    .use(Pinia)
    .use(ElementPlus)
    .use(GlobalComponents)
    .use(Widgets)
    .use(Fonts)
    .mixin(Mixin)
    .mount('#app')

export default app
